Q3Param2D_RRatio
You can use theQ3Param2D_RRatio
function to find a point lying between two given two-dimensional parametric points that is at a desired distance ratio from one of those points.
TQ3Param2D *Q3Param2D_RRatio ( const TQ3Param2D *p1, const TQ3Param2D *p2, float r1, float r2, TQ3Param2D *result);
p1
- A two-dimensional parametric point.
p2
- A two-dimensional parametric point.
r1
- A floating-point number.
r2
- A floating-point number.
result
- On exit, the two-dimensional parametric point that is at a desired distance ratio from
p1
along the line segment betweenp1
andp2
.DESCRIPTION
TheQ3Param2D_RRatio
function returns, as its function result and in theresult
parameter, the two-dimensional parametric point that lies on the line segment between the pointsp1
andp2
and that is at a distance from the first parametric point determined by the ratior1
/(r1
+r2
).